<!DOCTYPE HTML>
<html lang="zh-CN"><head>
<title>{$name}</title>
<meta charset="UTF-8">
<meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
	<link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
	<link href="{$Think.config.RESOURCEURL}wx_assets/css/product/product_detail.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
	<link href="{$Think.config.RESOURCEURL}wx_assets/micontent/materiaDetail.css{$Think.config.RESOURCE_VER}" rel="stylesheet">
	<!-- <script src="http://sdk.talkingdata.com/app/h5/v1?appid=DE13C350F41F5DE78FEC51DB5DE730D1&vn=v2&vc=v2"></script> -->
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js{$Think.config.RESOURCE_VER}"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js{$Think.config.RESOURCE_VER}"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
	<script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
	<script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/product/product.js{$Think.config.RESOURCE_VER}"></script>
</head>
<style>
	.priceTag
{
	display: inline-block;
	float: right;
	margin: 3px 5px;
	margin-bottom: 5px;
	padding: 1px 5px;
	border-radius: 2px;
	background: #f59300;
	color: white;
	font-size: 12px;
	font-weight: normal;
}
.tool-box
	{
		z-index: 2;
	}
	.tool-box dd
	{
		columns:initial;
		-webkit-columns:initial;
		display: -webkit-box;
		-webkit-box-orient: horizontal;
	}
	.tool-box dd > a
	{
		width: 0px;
		-webkit-box-flex: 4;
		margin: 0px 2px;
	}
	.tool-box dd > a:first-child
	{
		-webkit-box-flex: 5;
	}
</style>
<body>
	<!--关注浮层 begin-->
	<!--0表示未关注，1表示已关注-->
	<if condition="$subscribe eq '0'">
	<style>
		.careview
		{
			position: fixed;
			top: 0px;
			left: 0px;
			right: 0px;
			padding: 8px 110px 8px 65px;
			background: rgba(0,0,0,0.5);
			z-index: 999;
			color: white;
			height: 61px;
			box-sizing: border-box;
		}
		.careview > span
		{
			content: '';
			display: block;
			position: absolute;
			top: 50%;
			right: 5px;
			background: url({$Think.config.RESOURCEURL}wx_assets/images/careclose.png) no-repeat;
			width:18px;
			height: 18px;
			margin-top: -9px;
			background-size: contain;
			opacity: 0.8;
		}
		.careview > img
		{
			display: block;
			
			width: 45px;
			height: 45px;
			border-radius: 4px;
			position: absolute;
			top: 50%;
			left: 10px;
			margin-top: -22px;
		}
		.careview > a
		{
			background: #1c93ce;
			display: block;
			color: white;
			text-align: center;
			border-radius: 4px;
			width: 75px;
			height: 35px;
			line-height: 35px;
			font-size: 14px;
			top: 50%;
			margin-top: -17px;
			right:35px;
			position: absolute;
			
		}
		.careview > p
		{
			display: inline-block;
			vertical-align: middle;
			font-size: 14px;
			padding: 3px 0px;
			max-height: 38px;
			overflow: hidden;
			height: 100%;
			line-height: 38px;
		}
	</style>
	<div class="careview">
		<img src="{$mall.logo}" alt="" />
		<a href='{$mall.wechaturl}'>立即关注</a>
		<empty name="mall.recommend">
			<p>{$mall.wechatname}</p>
			<else />
			<p>{$mall.recommend}</p>
		</empty>
		
		<span></span>
	</div>
	<script>
		$('.careview > span').on('click',function(){
			$('.careview').hide();
		});
	</script>
	</if>
	<!--关注浮层 end-->
<div class="pro-detail" style="margin:0;padding:0 10px;">
	<div class="tab-content" id="TabContent">
		<div class="p-detail" style="padding:0;display:block">
			{$webPageContent}
		</div>
	</div>
	<div class="productInfo" id="productInfo">
		<div class="main">
			<div class="info">
				<div class="closeDiv"><div class="close" id="close"></div></div>
				<div class="imgDiv" align="center" onclick="product.toDetail('<%=fromCustomerId%>','<%=id%>')">
					<img src="{$picUrl}">
				</div>
				<div class="p-name" onclick="product.toDetail('<%=fromCustomerId%>','<%=id%>')">
					<div class="title">
						<if condition="$freeBuy eq '1'">
							<span>由你定价</span>&nbsp;
						</if>
						{$title}
					</div>
					<div class="price" style="overflow: hidden;height: 26px;">
						<if condition="$freeBuy eq '1'">
							￥{$freeBuyMoney[0]}~￥<php>echo end($freeBuyMoney);</php>
						<elseif condition="$playType eq '5' AND $isEnjoyMiPrice eq '1'"/>
							<div style="float: left;">密友价：￥{$list.miPrice}<del>{$list.fixedPrice}</del></div>
						<else/>
						<div style="float: left;">
							<if condition="$discountedPrice neq ''">
								￥{$discountedPrice}
								<else/>
								￥{$fixedPrice}
							</if>
						</div>
						<div>
							<volist name="priceTag" id="pct">
			            		<span class="priceTag">{$pct}</span>
			            	</volist>
			            </div>
						</if>
						
					</div>
				</div>
			</div>
			<if condition="$supportSpecification eq '1'">
				<div class="mod_property" id="prop-list"></div>
			</if>
			<if condition="$freeBuy eq '1'">
				<div class="mod_property" id="free-list">
					<dl>
						<dt>请选择价格</dt>
						<volist name="freeBuyMoney" id="money">
							<dd data-value="{$money}"><label style="float:none">{$money}</label></dd>
						</volist>
						<dt id="invitation" style="display:none;margin-bottom:0;"></dt>
					</dl>
				</div>
			</if>
				<div class="buyNum">
					<div class="title">购买数量</div>
					<div class="numDiv">
						<a class="sub disabled" tag="sub" id="sub"></a>
						<input type="number" min="1" max="10000" step="1" value="1" class="num" id="buyNum"/>
							<if condition="$inventory eq '1' AND $supportSpecification eq '0' AND $inventoryCount lt 2">
							<a class="plus disabled" tag="add" id="plus"></a>
							<else/>
							<a class="plus" tag="add" id="plus"></a>
						</if>

					</div>
					<notempty name="inventory">
						<if condition="$supportSpecification eq '0' AND $inventoryCount gt 0">
							<span class="inventory" id="inventory_count" style='display:block'>&nbsp;剩余<span id="stock-num">{$inventoryCount}</span>件</span>
							<else/>
							<span class="inventory" id="inventory_count" style="display:none">&nbsp;剩余<span id="stock-num">{$inventoryCount}</span>件</span>
						</if>
						<if condition="$supportSpecification eq '0' AND $inventoryCount eq ''">
							<div class="soldOut" style='display:block'></div>
							<else/>
							<div class="soldOut" style="display:none"></div>
						</if>
					</notempty>
				</div>
	</div>
		<if condition="$inventory neq '' AND $supportSpecification eq '0' AND $inventoryCount eq ''">
			<div class="beSure btn_disabled">确定</div>
			<else/>
			<div class="beSure">确定</div>
		</if>

	</div>

</div>
<div class="tool-box">
	<dl>
		<dt>
			<a id="car" class="car" onclick="detail.goCart('{$vId}')" >
				<div class="num" id="carNum"></div>
			</a>
		</dt>
		<dd>
			<if condition="$inventory eq '1' AND $inventoryCount eq '0' AND $supportSpecification eq '0'">
				<a class="add-car btn-disabled">加入购物车</a>
				<a class="buy btn-disabled">立即购买</a>
				<else/>
				<a class="add-car" onclick="detail.productShow(this,0);">加入购物车</a>
				<a class="buy" onclick="detail.productShow(this,1);">立即购买</a>
			</if>

		</dd>
	</dl>
</div>
<style>
	.playWarm
	{
		position: fixed;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		z-index: 1;
		background: rgba(0,0,0,0.6);
		display: none;
	}
	.playWarm > div
	{
		width: 280px;
		margin: 0 auto;
	}
	.playWarm > div 
	{
		border-radius: 5px;
		/*height: 85%;
		overflow-y: auto;
		-webkit-overflow-scrolling:touch;*/
		background: white;
		width: 280px;
		margin: 0 auto;
		position: absolute;
		
		top: 50%;
		left: 50%;
		-webkit-transform: translate(-50%,-55%);
	}
	.playWarm > div > div
	{
		border-radius: 5px;
	}
	.playWarm.small > div > div
	{
		overflow-y: auto;
		-webkit-overflow-scrolling:touch;
		height: 380px;
		
	}
	.playWarm > div > div > img
	{
		border-radius: 5px;
		display: block;
		margin: 0 auto;
		max-width: 100%;
		
	}
	.playWarm > div  .closeWarm
	{
		position: absolute;
		top: -8px;
		right: -10px;
		display: block;
		width: 28px;
		height: 28px;
		background: url({$Think.config.RESOURCEURL}wx_assets/tuan/img/closeWarm.png);
		background-size: contain;
		z-index: 999;
	}
</style>
<div class="playWarm">
	
	<div>
		<a onclick="hidePlayWarm()" class="closeWarm"></a>
		<img src="{$Think.config.RESOURCEURL}wx_assets/tuan/img/warm.png"/>
	</div>
</div>
<script type="text/html" id="prop-tpl">
	<dl>
	<dt><%=pName%></dt>
	<%for(var i=0;i<pList.length;i++){%>
		<%if(pUrl[i]){%>
			<dd data-name="<%=pList[i]%>"><img src="<%=pUrl[i]%>"/><label><%=pList[i]%></label></dd>
		<%}else{%>
			<dd data-name="<%=pList[i]%>"><label style="float:none"><%=pList[i]%></label></dd>
		<%}%>
	<%}%>
		</dl>
</script>
<if condition="$teambuy eq '1'">
<script>
	if($(window).height()<500)
	{
		$('.playWarm').addClass('small')
	}
	function hidePlayWarm(){
		$('.playWarm').hide();
		setCookie('playFirst',1);
	}
	var isFirst=getCookie('playFirst');
	console.log(isFirst);
	//第一次来,弹出提示
	if(isFirst==null)
	{
		
		$('.playWarm').show();
		
	}
	else if(isFirst==1)
	{
		$('.playWarm').hide();
	}
	
</script>
</if>
<script type="text/javascript">
	var baseUrl = '{$Think.config.SERVER_HOST}';
	var hrefPath = baseUrl+'call.html?customerId={$customerId}';
	var basePath = baseUrl+'call.json?customerId={$customerId}&userName={$userName}';
	var p=$.util.getParamAsObject();
	var distributionId = "{$distributionId}";
	var buyParams={
		"pids": "{$id}",
		"type": "buy",
		"qId":p.qId||"{$quanInfo.qId}",
		"miUId":p.miUId||"{$quanInfo.uId}",
		"vId":"{$vId}",
		"shareId":"{$sId}",
		"shareFromGuid":p.fromGuid,
		"userName":'{$userName}',
		"visitId":"{$visitId}",
		"distributionId":distributionId,
		"proSource":'{$proSource}'
	};
	var shareData = {
			visitId: "{$visitId}",
			lastShareUId: '{$lastShareUId}'
	}
	var detail={
		pageSize:10,
		page:0,
		status:0,
		cartList:null,//购物车详情
		guid:"{$guid}",
		cartData:null,
		goShop:function(url){
			var p=$.util.getParamAsObject();
			var p=encodeURIComponent(JSON.stringify(p));
			url+="&detailParam="+p;
			location.href=url;
		},
		init:function(){
			$("#free-list").css("bottom",-$("#free-list").height()+"px");
			this.getCartGoodsNum();
			this._initProp();
			this._initEvent();
		},
		_initProp: function(){
			var size = {$size};
			var color= {$color};
			var freebuy = '{$freeBuy}';
			var sku;
			if(size){
				var sizeUnit = '{$sizeUnit}';
				var sizeUrl = JSON.parse('{$sizeurl}');
				sku = {"pList": size,"pUrl":sizeUrl,"pName":sizeUnit};
				var html=template("prop-tpl", sku),
						container=$("#prop-list");
				container.append(html);
			}
			if(color){
				var colorUnit = '{$colorUnit}';
				var colorUrl = JSON.parse('{$colorurl}');
				sku={"pList": color,"pUrl":colorUrl,"pName":colorUnit};
				var html=template("prop-tpl", sku),
						container=$("#prop-list");
				container.append(html);
			}
			$("#productInfo").css("bottom",($("#productInfo").height()+50)*-1);
		},
		_initEvent:function(){
			var me=this;
			$("#close").click(function(){
				$("#opacity").hide();
				$("#productInfo").css("bottom",($("#productInfo").height()+50)*-1);
			});
			$(".beSure").click(function(){
				if(me.status){
					me._initBuy();
				}else{
					me.addToCart();
				}
			});
			$("#prop-list dd").on("click", function(e) {
				me.statisticSelected(this);
			});
			$("#free-list dd").click(function(){
				$("#invitation").show();
				$(this).addClass("current").siblings().removeClass("current");
				me.countPerNum();
			})
			$(".sub,.plus").on("click", function(e) {
				me._initBuyNum(e);
			});
		},
		statisticSelected: function(e) {
			var me=this;
			var b = $(e);
			if (!b.hasClass("current") && !b.hasClass("disabled")) {
				b.addClass("current").siblings().removeClass("current");
				$("#buyNum").val(1);
			}
			me._initCount();
		},
		_initCount:function(){
			var availSku = JSON.parse('{$availSku}');
			var inventory = '{$inventory}';
			var inventoryCount = '{$inventoryCount}';
			if(parseInt(inventory)){
				if(availSku){
					var size = {$size};
					var color = {$color};
					var key='';
					if(size){
						var sizeName = $("#prop-list dl:eq(0)").find("dd.current").data("name");
						key += sizeName;
					}
					if(color){
						var colorName = $("#prop-list dl:eq(1)").find("dd.current").data("name");
						key += "|"+colorName;
					}
					if(color&&!colorName)return;
					var stockCount = parseInt(availSku[key].stockCount);
					if(stockCount){
						$("#inventory_count").show();
						$("#stock-num").html(stockCount);
						$(".soldOut").hide();
					}else{
						$(".soldOut").show();
						$("#inventory_count").hide();
					}
					var nowNum = parseInt($("#buyNum").val());
					if(nowNum>=stockCount){
						$("#plus").addClass("disabled");
					}else{
						$("#plus").removeClass("disabled");
					}
					if(nowNum<2){
						$("#sub").addClass("disabled");
					}
				}else{
					var nowNum = parseInt($("#buyNum").val());
					if(nowNum>=inventoryCount){
						$("#plus").addClass("disabled");
					}else{
						$("#plus").removeClass("disabled");
					}
				}
			}
		},
		selectedSpec:function(){
			var first=$("#prop-list dl").eq(0);
			var second=$("#prop-list dl").eq(1);
			var supportSpecification='{$supportSpecification}' || 0;
			if(parseInt(supportSpecification)) {
				if($("#prop-list dl").size()>0){
					if((first && !first.find(".current").size()) ){
						var name ="{$sizeUnit}";
						$.util.alert("请选择"+name+"!");
						return false;
					}
					if(second.length>0 && !second.find(".current").size()){
						var name ="{$colorUnit}";
						$.util.alert("请选择"+name+"!");
						return false;
					}
				}
			}
			var freeBuy = parseInt('{$freeBuy}');
			if( freeBuy&&!$("#free-list dd").hasClass("current")){$.util.alert("没有选择价格");return;}
			return true;
		},
		getCartGoodsNum:function () {
			var me = this;
			var customerId=$.util.getParam("customerId");
			$.req.get("call.json?module=product&customerId="+customerId+"&method=getCarNum",{
				userName:buyParams.userName,
				params:{
					"type":"buy",
					"sid":"-1"
				}
			},function(data){
				if(!data.code){
					me.cartData = data;
				}
			});
		},
		_initBuyNum: function(e) {
			var me=this;
			var buyNum = $("#buyNum"),
					target = $(e.target),
					type = target.attr("tag"),
					num = 1 * buyNum.val();
			if (target.hasClass("disabled")) {
				return;
			}
			if (num) {
				if (isNaN(num)) {
					buyNum.val(1);
				} else {
					var ktotal = me.ktotal || 999;
					if(!me.selectedSpec()){
						return;
					}
					if (type == "add") {
						buyNum.val(++num);
						me._initCount();
						$("#sub").removeClass("disabled");
						if(num>=ktotal){
							$("#plus").addClass("disabled");
						}
					} else {
						if (num > 1) {
							buyNum.val(--num);
							$("#plus").removeClass("disabled");
							if (num < 2) {
								$("#sub").addClass("disabled");
							}
						}
					}
				}
			}
			me.countPerNum();
		},
		countPerNum:function(){
			var price =  '{$discountedPrice}'||'{$fixedPrice}';
			var pNum = Math.ceil($.util.accSub(price,$("#free-list dd.current").data("value")));
			var num = $("#buyNum").val();
			pNum = num*pNum;
			if(pNum){
				$("#invitation").html("需要"+pNum+"个好友帮忙减价");
			}else{
				$("#invitation").html( "正常价格，可直接购买。");
			}
		},
		getShareUrl:function(){
	        var p=$.util.getParamAsObject();
	        var shareUrl="";
	        var me=this;
			var mallQId = "{$quanInfo.qId}";
			var mallUId = "{$quanInfo.uId}";
			if(p.qId||(mallQId&&mallUId)){
				var params={
					"id":"{$id}",
					"fromUserName":"{$userName}",
					"qId":p.qId||mallQId,
					"miUId":p.miUId||mallUId,
					"visitId":shareData.visitId,
					"lastShareUId":shareData.lastShareUId
				}
			}else{
				var params={
					"id":"{$id}",
					"fromUserName":"{$userName}",
					"visitId":shareData.visitId,
					"lastShareUId":shareData.lastShareUId
				}
			}
			params=encodeURIComponent(JSON.stringify(params));
			shareUrl=baseUrl+'call.html?customerId={$customerId}&module=product&method=getProduct&params='+params;
	        return shareUrl;
	    },
		goCart:function(vId){
			var p=$.util.getParamAsObject();
			var params=$.extend(p,{
				"sid":"-1",
				"type":"buy",
				"tplid":"4",
				"mid":4,
				"vId":vId,
				"qId":p.qId||"{$quanInfo.qId}",
				"miUId":p.miUId||"{$quanInfo.miUId}"
			});
			params=encodeURIComponent(JSON.stringify(params));
			location.href = 'call.html?customerId={$customerId}&module=product&method=getCart&params=' + params;
		},
		productShow:function(ctrl,status){
			var me= this;
			me.status = status;
			if($(ctrl).hasClass("btn-disabled")){return;}
			$("#buyNum").val(1);
			$("#invitation").hide();
			$(".mod_property dd.current").removeClass("current");
			$("#productInfo").addClass("show");
			$("#productInfo").css("bottom",0);
		},
		addToCart:function() {
			var index = $(".ui-slider-dots .ui-state-active").index();
			var inventory = '{$inventory}';
			var img = $("div.ui-slider img:eq("+index+")");
			var me=this;
			var num = parseInt($("#buyNum").val());
			var p=$.util.getParamAsObject();
			if(!me.selectedSpec()){return;}
			var sizeprop = '{$size}';
			var freeBuy = parseInt('{$freeBuy}');
			if( freeBuy&&!$("#free-list dd").hasClass("current")){$.util.alert("没有选择价格");return;}
			if(sizeprop&&sizeprop!='null') {
				var size = $("#prop-list dl").eq(0).find("dd.current").data("name") || "";
				var color = $("#prop-list dl").eq(1).find("dd.current").data("name") || "";
				if(parseInt(inventory)){
					var key = '';
					var key1 = {$id};
					if (size) {
						key += size;
					}
					if (color) {
						key += "|" + color;
					}
					key1 += "|" + key;
					var availSku = JSON.parse('{$availSku}');
					var nowNum = parseInt(availSku[key].stockCount);
					if (num > nowNum) {
						$.util.alert("购买数量不能超过库存限制");
						return;
					}
					var carPro = me.cartData.list[key1];
					if (carPro) {
						var carNum = parseInt(carPro.count);
						if (carNum + num > nowNum) {
							$.util.alert("购买数量不能超过库存限制");
							return;
						}
					}
				}
			}
			var freeBuy = "{$freeBuy}";
			var pa={
				"pid":"{$id}",
				"type":"buy",
				"count":num,
				"size":size,
				"color":color,
				"qId":p.qId||"{$quanInfo.qId}",
				"miUId":p.miUId||"{$quanInfo.uId}",
				"vId":p.vId,
				"shareId":p.sId,
				"shareFormGuid":p.fromGuid || "",
				"visitId":"{$visitId}"
			};
			if(parseInt(freeBuy)){
				pa.deposit=$("#free-list dd.current").data("value");
			}
			$.req.get("call.json?module=product&customerId={$customerId}&method=updateOrderDetail", {
				userName: "{$userName}",
				params: pa
			},function(data){
				if(!data.code){
					$.util.alert("加入购物车成功");
					mi.PRODUCT_DETAIL.getCartGoodsNum();
					$("#productInfo").css("bottom",-($("#productInfo").height()+50)+"px");
				}
			})
		},
		_initBuy: function() {
			var customerId = $.util.getParam("customerId");
			if (!$("#buy-now").hasClass("btn-disabled")) {
				if ($("#stock-num") && $("#stock-num").html() == 0) {
					$.util.alert("库存不足");
					return;
				}
				var freeBuy = parseInt('{$freeBuy}');
				if(freeBuy&&!$("#free-list dd").hasClass("current")){$.util.alert("没有选择价格");return;}
				var size = $("#prop-list dl").eq(0).find("dd.current").data("name")||"";
				var color = $("#prop-list dl").eq(1).find("dd.current").data("name")||"";
				var num = parseInt($("#buyNum").val());
				var freeBuy = "{$freeBuy}";
				var buyParams = {
					"pids": "{$id}",
					"type": "buy",
					"qId": p.qId,
					"miUId": p.miUId,
					"userName": "{$userName}",
					"shareFromGuid": p.fromGuid,
					"shareId": p.sId,
					"sizes": size,
					"colors": color,
					"counts": num,
					"vId": p.vId
				};
				if(freeBuy) {
					buyParams.deposits = $("#free-list dd.current").data("value");
				}
				$.util.pageLoading.show();
				$("#buy-now").addClass("btn-disabled");
				$.req.get("call.json?customerId=" + customerId + "&module=product&method=preSubmitOrder", {
					params:buyParams
				}, function(data) {
					if (data.hasOwnProperty('code')) {
						$("#buy-now").removeClass("btn_disabled");
						$.util.alert(data.msg);
					} else {
						var p = {
							"tplid": 1,
							"id": data.id
						}
						location.href = window.hrefPath + '&module=product&method=getOrderDetail&force=1&params=' + encodeURIComponent(JSON.stringify(p));
					}
					$.util.pageLoading.hide();
				});
			}
		}

	};
	detail.init();
	mi.PRODUCT_DETAIL.getCartGoodsNum();
	var shareUrl=detail.getShareUrl();
	wx_share.init({
			"title":"{$title}",
			"desc":'{$recommend}',
			"link":shareUrl,
			"imgUrl":"{$picUrl}",
			"pkg":{
				"appId": '{$pkg.appId}',
				"timestamp": {$pkg.timestamp},
			"nonceStr": '{$pkg.nonceStr}',
			"signature": '{$pkg.signature}'
		},
		success:function(config,shareType){
			var p=$.util.getParamAsObject();
			$.req.get("call.json?customerId={$customerId}&module=quan&method=saveShare",{
				params:{
					"qId":p.qId,
					"sId":"{$sId}",
					"guid":detail.guid,
					"fromGuid":p.fromGuid || "",
					"miUId":p.miUId,
					"shareType":shareType,
					"fromPage":"product_detail",
					"visitId":shareData.visitId,
					"lastShareUId":shareData.lastShareUId
				}
			},function(data){
				if(data && !data.code){
					detail.guid=data.guid;
				}
			});
		}
	});
</script>
</body></html>
